<?php $this->Html->addCrumb('Offices', '/Offices'); ?>
<?php $this->Html->addCrumb('View'); ?>

<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Interaction.i_id')), null, __('Are you sure you want to delete this interaction on the %s?', $this->Form->value('Interaction.i_date'))); ?></li>
		<li><?php echo $this->Html->link(__('List Interactions'), array('action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('List Offices'), array('controller' => 'offices', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Office'), array('controller' => 'offices', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="interactions form">
<?php echo $this->Form->create('Interaction'); ?>
	<fieldset>
		<legend><?php echo __('Edit Interaction'); ?></legend>
		<div class="control-group">
        <div class="input-append date datetime">
            <?php echo $this->Form->input('i_date',array('type' => 'text','div' => false, 'label' => array('text' =>'Date', 'class'=>'control-label'), 'wrapInput' => false));?>
				<span class="add-on"><i class="icon-calendar"></i></span>
			</div>
		</div>
	<?php
		
		echo $this->Form->input('i_type',array(
			'options'=>$types,
			'label'=>'Type',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror'
				)
			));
		echo $this->Form->input('i_details',array(
			'rows' => '5',

			'label' => 'Details',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror'
				)
			));
		echo $this->Form->input('e_id',array(
			'options'=>$employee,
			'label' => 'Employee',
			'div' => 'formfield',
			'error' => array(
                'wrap' => 'div', 
                'class' => 'formerror'
				)
			));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>

